package artid.com.arttogoa.glide;


import android.content.Context;
import com.bumptech.glide.Glide;
import com.bumptech.glide.GlideBuilder;
import com.bumptech.glide.load.DecodeFormat;
import com.bumptech.glide.module.GlideModule;

/**
 * Glide加载图片有模糊的情况，暂时用这种方法看下加载情况
 * http://blog.csdn.net/theone10211024/article/details/45557859
 * Created by wangfubin on 2016/3/14.
 */
public class GlideConfiguration implements GlideModule {

    @Override public void applyOptions(Context context, GlideBuilder builder) {
        // Apply options to the builder here.
        builder.setDecodeFormat(DecodeFormat.PREFER_RGB_565);
    }


    @Override public void registerComponents(Context context, Glide glide) {
        // register ModelLoaders here.
    }
}